import React, { Component } from "react";

import { HashRouter, Route, Switch } from "react-router-dom";
import Login from "./pages/login";
import Home from "./pages/home";
import memoryUtils from "./utils/memory";
import StorageUtils from "./utils/localStorageUtils";

export default class App extends Component {
  render() {
    memoryUtils.user = StorageUtils.getUser();

    return (
      <HashRouter>
        <Switch>
          <Route path="/login" component={Login}></Route>
          <Route path="/" component={Home}></Route>
        </Switch>
      </HashRouter>
    );
  }
}
